package reflect;

import reflect.annotation.AutoRunClass;

public class ReflectDemo7 {
    public static void main(String[] args) throws ClassNotFoundException {
        Class cls = Class.forName("reflect.Person");
        boolean tf = cls.isAnnotationPresent(AutoRunClass.class);
        if (tf) {
            System.out.println("被标注了");
        } else {
            System.out.println("没有被标注");
        }
    }
}
